package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwLbsMapper;
import com.tjmc.tiomscore.model.TranPtnHwLbs;
import com.tjmc.tiomsresource.parser.CMLbsParser;
import com.tjmc.tiomsresource.service.CMLbsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Service("cmLbsService")
public class CMLbsServiceImpl extends CMSuperServiceImpl<TranPtnHwLbs> implements CMLbsService {

    @Autowired
    private CMLbsParser cmLbsParser;
    @Autowired
    private TranPtnHwLbsMapper tranPtnHwLbsMapper;

    @Override
    public CMLbsParser getParser() {
        return cmLbsParser;
    }

    @Override
    public TranPtnHwLbsMapper getMapper() {
        return tranPtnHwLbsMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "LBS");
    }
}
